package org.csmzxy.class2333;

import java.io.File;
import java.io.IOException;

public class Example03 {
    public static void main(String[] args) throws IOException{
        File f1 = new File("src\\itheima.txt");
        if(f1.exists()){
            System.out.println("删除文件itheima.txt:" + f1.delete());
        }else{
            System.out.println("创建文件itheima.txt:" + f1.createNewFile());
        }
    }
}
